@layout("/common/_curd/_container.html"){

<script type="text/javascript">
	var ctx = "${basePath}";
	var grid_selector = "#grid-table";
	var pager_selector = "#grid-pager";
	
	$(function(){
		initGrid();
		initMenuBtn("btns", "${code}");
	});
	
	function initGrid(){
		var grid_url = ctx + "/${code}/list";
		var _colnames = ["", 
						"识别图片", 
						"状态：1.未识别；2.识别通过；3.识别错误", 
						"创建时间", 
						"修改时间", 
						"操作人员", 
						"所属资料用户", 
						"所属模板", 
						"概述"];
		var _colmodel = [{name:"id", index:"id", width:100},
						{name:"path", index:"path", width:100},
						{name:"status", index:"status", width:100},
						{name:"createTime", index:"createTime", width:100},
						{name:"modifyTime", index:"modifyTime", width:100},
						{name:"member_id", index:"member_id", width:100},
						{name:"user_id", index:"user_id", width:100},
						{name:"template_id", index:"template_id", width:100},
						{name:"mark", index:"mark", width:100}];
		
		jQuery(grid_selector).jqGrid({
			url : grid_url,
		    shrinkToFit : true,
			colNames : _colnames,
			colModel : _colmodel, 
			jsonReader : {id :"id"},
			pager : pager_selector,
			postData : {sort : "id", order : "desc"}
		});
	}
</script>


	<!-- 配置 grid -->
	<div class="row">
		<div class="col-xs-12 tb-grid">
			<!-- 配置 查询 -->
			@ var _col=[
@		{name:"", index:"id", type:"text"},
			@		{name:"识别图片", index:"path", type:"text"},
			@		{name:"状态：1.未识别；2.识别通过；3.识别错误", index:"status", type:"text"},
			@		{name:"创建时间", index:"createTime", type:"text"},
			@		{name:"修改时间", index:"modifyTime", type:"text"},
			@		{name:"操作人员", index:"member_id", type:"text"},
			@		{name:"所属资料用户", index:"user_id", type:"text"},
			@		{name:"所属模板", index:"template_id", type:"text"},
			@		{name:"概述", index:"mark", type:"text"}							
			@];
			@ include("/common/_function/_search.html",{"col":_col}){}
			<!-- 按钮 -->
			<div class="welljq well-sm" id="btns"></div>
			<!-- grid -->
			<table id="grid-table"></table>
			<!-- 分页-->
			<div id="grid-pager"></div>
		</div>
	</div>
	
	<!-- 引入所需的js -->
	@include("/common/_listscript.html"){}
	
@}	